package fm.yichenet.mongo.service;

import com.mongodb.DBObject;
import fm.dto.NeiyiUser;

import java.util.List;

/**
 * Created by 63267 on 2017/6/18.
 */
public interface ShoppingCartService {

    List getShoppingCartForPage(NeiyiUser user,Integer pageSize,Integer pageNum) throws Exception;

    DBObject addShoppingCart(NeiyiUser user,Integer goodNum,String goodId) throws Exception;

    void deleteShoppingCart(NeiyiUser user,String goodId) throws Exception;

    DBObject editShoppingCart(NeiyiUser user,String goodId,Integer goodNum) throws Exception;
}
